package handlers

import (
	"github.com/gofiber/fiber/v2"
	"go_test/config"
	"go_test/models"
)

func PageAllDevice(c *fiber.Ctx) error {
	var devices []models.IosDevice
	config.DB.Raw(`
		        SELECT  * from ios_device
	`).Scan(&devices)
	return c.JSON(config.Success(devices))
}
